Skip to content

Instantly share code, notes, and snippets.

@jeroen
jeroen / fft.R
Last active March 17, 2026 18:56
Example of FFT in R (because I always forget)
# Sampling frequency and audio length
freq <- 400
duration <- 5
# radian constant for sin/cos
tau <- 2*pi
# Generate a composite signal (4, 6, 9 hz)
x <- seq(0, duration, length.out = freq*duration)
y <-
@jinjier
jinjier / javdb-top250.md
Last active March 17, 2026 18:55
JavDB top 250 movies list. [Updated on 2026/01]
@iamwildtuna
iamwildtuna / gist:7772b7c84a11bf6e1385f23096a73a15
Last active March 17, 2026 18:55
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta (Instagram, Facebook)
// Узлы
157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32
157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38
57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97
// Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16
@jcolbyfisher
jcolbyfisher / G502 X Lightspeed wireless template.json
Last active March 17, 2026 18:54
This is an input-remapper template for the Logitech G502 X Lightspeed. See the top comment for the required setup instructions. Once set up, you'll be able to remap every button on the mouse when it's used wirelessly.
[
{
"input_combination": [
{
"type": 1,
"code": 281,
"origin_hash": "REPLACE_THIS_WITH_YOUR_ORIGIN_HASH"
}
],
"target_uinput": "keyboard",
@kare
kare / go-unit-test-setup-and-teardown-math_setup_and_teardown_test.go
Created November 22, 2016 17:53
Go unit test setup and teardown math_test.go
package math
import "testing"
func setupTestCase(t *testing.T) func(t *testing.T) {
t.Log("setup test case")
return func(t *testing.T) {
t.Log("teardown test case")
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>SheCodes</title>
<style>
body {
font-family: Cerebri Sans, Helvetica, Arial, sans-serif;

Garry Tan's Mega Plan Review Mode

name: plan-mega-review
version: 2.0.0
description: |
  The most thorough plan review possible. Three modes: SCOPE EXPANSION (dream big,
  build the cathedral), HOLD SCOPE (review what's here with maximum rigor), and
  SCOPE REDUCTION (strip to essentials). Context-dependent defaults, but when the
 user says EXPANSION — go full send. Challenges premises, maps every failure mode,
@carefree-ladka
carefree-ladka / Google 2026 Interview Preparation - Complete Weekly Roadmap.mdx
Created December 31, 2025 15:09
Google 2026 Interview Preparation - Complete Weekly Roadmap

Google 2026 Interview Preparation - Complete Weekly Roadmap

image

Target: Crack Google L3/L4/L5 by 2026 Duration: 24 weeks (6 months intensive preparation) Daily Time Commitment: 3-4 hours minimum


@adamshack
adamshack / SFSymbols.swift
Created January 13, 2023 05:51
SwiftUI Images for Apple System graphics from the SF Symbol Set (version 4.0)
//
// SFSymbols.swift
//
// Created from SF Symbols (Version 4.0 [80])
// Copyright ©2019-2022 Apple Inc.
//
import SwiftUI
public enum SFSymbols {}
@joepie91
joepie91 / vpn.md
Last active March 17, 2026 18:38
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.